package com.znjc.device.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.znjc.common.annotation.Excel;
import com.znjc.device.domain.vo.IotData;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 【请填写功能名称】对象 device_device
 *
 * @author zengpc
 * @date 2023-12-04
 */
@Data
public class DeviceDevice extends BaseZnjcEntity {
    private static final long serialVersionUID = 1L;


    /**
     * 设备名称
     */
    @Excel(name = "设备名称")
    private String deviceName;

    /**
     * 设备编码
     */
    @Excel(name = "设备编码")
    private String deviceCode;

    /**
     * 设备类别
     */
    @Excel(name = "设备类别")
    private Long typeId;
    /**
     * 设备类别名称
     */
    @Excel(name = "设备类别")
    @TableField(exist = false)
    private String typeName;


    /**
     * 设备图片地址
     */
    @Excel(name = "设备图片地址")
    private String imageUrl;

    /**
     * 设备详细地址
     */
    @Excel(name = "设备详细地址")
    private String address;

    /**
     * 设备地址位
     */
    @Excel(name = "设备地址位")
    private String addressBitmap;

    /**
     * 设备状态0正常1报警
     */
    @Excel(name = "设备状态")
    private String deviceStatus;
    /**
     * 测量对象编号
     */
    @Excel(name = "测量编号")
    private String dxbh;
    /**
     * 导通主测试点
     */
    @Excel(name = "导通主测试点")
    private String masterCode;
    /**
     * 导通从测试点
     */
    @Excel(name = "导通从测试点")
    private String slaveCode;
    /**
     * 频率
     */
    @Excel(name = "频率")
    private Integer frequency;
    /**
     * 电流
     */
    @Excel(name = "电流")
    private Integer electricity;
    /**
     * 是否导通
     */
    @Excel(name = "是否导通")
    private String isDt;
    /**
     * 地桩距
     */
    @Excel(name = "地桩距")
    private BigDecimal dzj;
    /**
     * 显示对象0电阻1电阻率2电压
     */
    @Excel(name = "显示对象")
    private String xsdx;

    @Excel(name = "寄存器地址")
    private Integer jcqdz;
    @Excel(name = "是否回流0是 1否")
    private Integer huiliu;
    @Excel(name = "单位小数位0是 1否")
    private Integer dwxsw;
    /**
     * 采集方式 device_gather_cjfs 1 串口 2监测仪
     */
    @Excel(name = "采集方式")
    private String cjfs;

    @TableField(exist = false)
    private List<IotData> dataVos;
    @TableField(exist = false)
    private String dzw;
    @TableField(exist = false)
    private String zdzw;
    @TableField(exist = false)
    private String cdzw;
}
